**Oceno & Chojnacki, "Feminism Within Parties: Implications for Political Elite Evaluations and Policy Attitudes," Research & Politics

***CCES 2020 STUDY***

label variable teamweight "weight"
svyset [pweight=teamweight] 

*Gender

gen female=.
replace female=1 if gender==2
replace female=0 if gender==1
label define female 1 "Women" 0 "Men"
label values female female

*Race & Ethnicity

gen white=0 
replace white=1 if race==1

gen black=0
replace black=1 if race==2

gen hisp=0
replace hisp=1 if race==3

gen asian=0
replace asian=1 if race==4

gen White=.
replace White=1 if race==1
replace White=0 if race>1

gen NonWhite=.
replace NonWhite=1 if race>1
replace NonWhite=0 if race==1

*Age

gen age=.
replace age=(2020-birthyr)
replace age=age/100

*Political interest

gen polint=.
replace polint=1-((newsint-1)/3) if newsint<=4

*Political ideology

gen ideology=.
replace ideology=0 if CC20_340a==1
replace ideology=.167 if CC20_340a==2
replace ideology=.333 if CC20_340a==3
replace ideology=.5 if CC20_340a==4 
replace ideology=.667 if CC20_340a==5
replace ideology=.833 if CC20_340a==6
replace ideology=1 if CC20_340a==7
label define ideology 0 "extremely liberal" 1 "extremely conservative"
label values ideology ideology

gen ideol_3cat=.
replace ideol_3cat=0 if ideology<.5
replace ideol_3cat=.5 if ideology==.5
replace ideol_3cat=1 if ideology>.5 & ideology<=1
label define ideol_3cat 0 "Liberal" 1 "Conservative"
label values ideol_3cat ideol_3cat

gen ideology_3cat=.
replace ideology_3cat=0 if ideology<.5
replace ideology_3cat=1 if ideology==.5
replace ideology_3cat=2 if ideology>.5 & ideology<=1
label define ideology_3cat 0 "liberal" 2 "conservative"
label values ideology_3cat ideology_3cat

*Partisanhip 

gen partyID=.
replace partyID=0 if pid7==1
replace partyID=.167 if pid7==2
replace partyID=.333 if pid7==3
replace partyID=.5 if pid7==4
replace partyID=.667 if pid7==5
replace partyID=.833 if pid7==6
replace partyID=1 if pid7==7
label define partyID 0 "Strong Dem" 1 "Strong Rep"
label values partyID partyID

gen partyid_factor=.
replace partyid_factor=1 if pid7==1
replace partyid_factor=2 if pid7==2
replace partyid_factor=3 if pid7==3
replace partyid_factor=4 if pid7==4
replace partyid_factor=5 if pid7==5
replace partyid_factor=6 if pid7==6
replace partyid_factor=7 if pid7==7
label define partyid_factor 1 "Strong Dem" 7 "Strong Rep"
label values partyid_factor partyid_factor

gen partyid_3cat=.
replace partyid_3cat=0 if pid7==1 | pid7==2 | pid7==3
replace partyid_3cat=1 if pid7==4 
replace partyid_3cat=2 if pid7==5 | pid7==6 | pid7==7
label define partyid_3cat 0 "Dem." 1 "Pure Ind." 2 "Rep."
label values partyid_3cat partyid_3cat

gen partyid_2cat=.
replace partyid_2cat=0 if partyid_3cat==0
replace partyid_2cat=1 if partyid_3cat==2
label define partyid_2cat 0 "Democratic" 1 "Republican"
label values partyid_2cat partyid_2cat

*Education

gen education=.
replace education=0 if educ==1
replace education=1 if educ==2
replace education=2 if educ==3
replace education=3 if educ==4
replace education=4 if educ==5
replace education=5 if educ==6
replace education=education/5

gen noHS=.
replace noHS=1 if educ==1
replace noHS=0 if educ!=1

gen highschool=.
replace highschool=1 if educ==2
replace highschool=0 if educ!=2

gen somecollege=.
replace somecollege=1 if educ==3
replace somecollege=0 if educ!=3

gen twoyrdegree=.
replace twoyrdegree=1 if educ==4
replace twoyrdegree=0 if educ!=4

gen fouryrdegree=.
replace fouryrdegree=1 if educ==5
replace fouryrdegree=0 if educ!=5

gen postgrad=.
replace postgrad=1 if educ==6
replace postgrad=0 if educ!=6

*Income

gen income=faminc_new
replace income=. if faminc_new==97
replace income=(income-1)/15

gen faminc=faminc_new if faminc_new<=16

gen income1=.
replace income1=1 if faminc_new==1
replace income1=0 if faminc_new!=1 & faminc_new!=97

gen income2=.
replace income2=1 if faminc_new==2
replace income2=0 if faminc_new!=2 & faminc_new!=97

gen income3=.
replace income3=1 if faminc_new==3
replace income3=0 if faminc_new!=3 & faminc_new!=97

gen income4=.
replace income4=1 if faminc_new==4
replace income4=0 if faminc_new!=4 & faminc_new!=97

gen income5=.
replace income5=1 if faminc_new==5
replace income5=0 if faminc_new!=5 & faminc_new!=97

gen income6=.
replace income6=1 if faminc_new==6
replace income6=0 if faminc_new!=6 & faminc_new!=97

gen income7=.
replace income7=1 if faminc_new==7
replace income7=0 if faminc_new!=7 & faminc_new!=97

gen income8=.
replace income8=1 if faminc_new==8
replace income8=0 if faminc_new!=8 & faminc_new!=97

gen income9=.
replace income9=1 if faminc_new==9
replace income9=0 if faminc_new!=9 & faminc_new!=97

gen income10=.
replace income10=1 if faminc_new==10
replace income10=0 if faminc_new!=10 & faminc_new!=97

gen income11=.
replace income11=1 if faminc_new==11
replace income11=0 if faminc_new!=11 & faminc_new!=97

gen income12=.
replace income12=1 if faminc_new==12
replace income12=0 if faminc_new!=12 & faminc_new!=97

gen income13=.
replace income13=1 if faminc_new==13
replace income13=0 if faminc_new!=13 & faminc_new!=97

gen income14=.
replace income14=1 if faminc_new==14
replace income14=0 if faminc_new!=14 & faminc_new!=97

gen income15=.
replace income15=1 if faminc_new==15
replace income15=0 if faminc_new!=15 & faminc_new!=97

gen income16=.
replace income16=1 if faminc_new==16
replace income16=0 if faminc_new!=16 & faminc_new!=97

egen incomeavg=mean(income)

gen income_norm=.
replace income_norm=income/incomeavg

gen income_norm01=.
replace income_norm01=income_norm/2.804695

*Religiosity

gen relimp=.
replace relimp = 0 if pew_religimp == 4
replace relimp = .333 if pew_religimp == 3
replace relimp = .667 if pew_religimp == 2
replace relimp = 1 if pew_religimp == 1 

gen relattend=.
replace relattend = 0 if pew_churatd == 6
replace relattend = .2 if pew_churatd == 5
replace relattend = .4 if pew_churatd == 4
replace relattend = .6 if pew_churatd == 3
replace relattend = .8 if pew_churatd == 2
replace relattend = 1 if pew_churatd == 1

alpha relimp relattend, gen(religious)

*Feminist identification

gen feministIDdummy=.
replace feministIDdummy=1 if VAN301==1
replace feministIDdummy=0 if VAN301==2
label define feministIDdummy 1 "Feminist" 0 "Non-Fem."
label values feministIDdummy feministIDdummy

***DVs***

*Elite feminist ratings

gen trumpft=.
replace trumpft=3 if VAN306==1
replace trumpft=2 if VAN306==2
replace trumpft=1 if VAN306==3
replace trumpft=0 if VAN306==4
replace trumpft=(trumpft/3)

gen barackft=.
replace barackft=3 if VAN307==1
replace barackft=2 if VAN307==2
replace barackft=1 if VAN307==3
replace barackft=0 if VAN307==4
replace barackft=(barackft/3)

gen michelleft=.
replace michelleft=3 if VAN308==1
replace michelleft=2 if VAN308==2
replace michelleft=1 if VAN308==3
replace michelleft=0 if VAN308==4
replace michelleft=(michelleft/3)

gen ivankaft=.
replace ivankaft=3 if VAN309==1
replace ivankaft=2 if VAN309==2
replace ivankaft=1 if VAN309==3
replace ivankaft=0 if VAN309==4
replace ivankaft=(ivankaft/3)

gen hillaryft=.
replace hillaryft=3 if VAN310==1
replace hillaryft=2 if VAN310==2
replace hillaryft=1 if VAN310==3
replace hillaryft=0 if VAN310==4
replace hillaryft=(hillaryft/3)

gen palinft=.
replace palinft=3 if VAN311==1
replace palinft=2 if VAN311==2
replace palinft=1 if VAN311==3
replace palinft=0 if VAN311==4
replace palinft=(palinft/3)

gen bidenft=.
replace bidenft=3 if VAN312==1
replace bidenft=2 if VAN312==2
replace bidenft=1 if VAN312==3
replace bidenft=0 if VAN312==4
replace bidenft=(bidenft/3)

gen georgewft=.
replace georgewft=3 if VAN313==1
replace georgewft=2 if VAN313==2
replace georgewft=1 if VAN313==3
replace georgewft=0 if VAN313==4
replace georgewft=(georgewft/3)

gen aocft=.
replace aocft=3 if VAN314==1
replace aocft=2 if VAN314==2
replace aocft=1 if VAN314==3
replace aocft=0 if VAN314==4
replace aocft=(aocft/3)

gen kellyanneft=.
replace kellyanneft=3 if VAN315==1
replace kellyanneft=2 if VAN315==2
replace kellyanneft=1 if VAN315==3
replace kellyanneft=0 if VAN315==4
replace kellyanneft=(kellyanneft/3)

alpha barackft michelleft hillaryft bidenft aocft, gen(demFT)

alpha georgewft trumpft ivankaft palinft kellyanneft, gen(repFT)

*Immigration progressive policies

gen immig_1=.
replace immig_1=1 if CC20_331a==1
replace immig_1=0 if CC20_331a==2

gen immig_2=.
replace immig_2=1 if CC20_331b==2
replace immig_2=0 if CC20_331b==1

gen immig_3=.
replace immig_3=1 if CC20_331c==2
replace immig_3=0 if CC20_331c==1

gen immig_4=.
replace immig_4=1 if CC20_331d==2
replace immig_4=0 if CC20_331d==1

gen immig_5=.
replace immig_5=1 if CC20_331e==2
replace immig_5=0 if CC20_331e==1

alpha immig_1 immig_2 immig_3 immig_4 immig_5, gen(immig_scale)

*Policing progressive policies

gen polic_1=.
replace polic_1=1 if CC20_334a==1
replace polic_1=0 if CC20_334a==2

gen polic_2=.
replace polic_2=1 if CC20_334b==1
replace polic_2=0 if CC20_334b==2

gen polic_3=.
replace polic_3=1 if CC20_334c==2
replace polic_3=0 if CC20_334c==1

gen polic_4=.
replace polic_4=1 if CC20_334d==1
replace polic_4=0 if CC20_334d==2

gen polic_5=.
replace polic_5=1 if CC20_334e==1
replace polic_5=0 if CC20_334e==2

gen polic_6=.
replace polic_6=1 if CC20_334f==1
replace polic_6=0 if CC20_334f==2

gen polic_7=.
replace polic_7=1 if CC20_334g==1
replace polic_7=0 if CC20_334g==2

gen polic_8=.
replace polic_8=1 if CC20_334h==1
replace polic_8=0 if CC20_334h==2

alpha polic_1 polic_2 polic_3 polic_4 polic_5 polic_6 polic_7 polic_8, gen(polic_scale)


****************************MANUSCRIPT FIGURES***********************************
	  
**Figure 1

svy: reg demFT i.feministIDdummy##i.partyid_2cat polint ideology female white age education income_norm01 religious
margins feministIDdummy#partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(bar) scheme(plottig) level(83.5) plotopts(bcolor(gs4) barwidth(.8) ytitle("Predicted Feminism Ratings of Democratic Public Figures") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(demrat)

svy: reg repFT i.feministIDdummy##i.partyid_2cat polint ideology female white age education income_norm01 religious
margins feministIDdummy#partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(bar) scheme(plottig) level(83.5) plot1opts(bcolor(gs4) barwidth(.8) ytitle("Predicted Feminism Ratings of Republican Public Figures") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(reprat)

graph combine demrat reprat, xcommon ycommon imargin(medsmall) col(2)


**Figure 2

svy: reg immig_scale i.feministIDdummy##i.partyid_2cat polint ideology female white age education income_norm01 religious
margins i.feministIDdummy#i.partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Immigration Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(immig1)

svy: reg polic_scale i.feministIDdummy##i.partyid_2cat polint ideology female white age education income_norm01 religious
margins feministIDdummy#partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Policing Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(polic1)

graph combine immig1 polic1, xcommon ycommon imargin(medsmall) col(2)


*********************************APPENDIX****************************************

**Tables B1-B2
		   
tab feministIDdummy female [aweight=teamweight], col

tab feministIDdummy partyid_3cat [aweight=teamweight], col

**Figure B1

histogram partyid_factor, scheme(plottig) percent discrete xsize(4) ysize(6) xscale(range(0.5 7.5)) xlabel(1(1)7, labsize(medium) nogrid angle(45) valuelabel labcolor(black)) xtitle("Party ID", size(medium)) ytitle("Percentage of obs", size(medium)) ylabel(0(10)40, labsize(medium)) title("") subtitle(, size(medium)) by(feministIDdummy, title("", size(medium)) col(1) note(""))

**Appendix C

tab feministIDdummy ideology_3cat [aweight=teamweight], row

**Appendix D

sum i.partyid_3cat i.ideology_3cat polint i.female white black hisp asian age noHS highschool somecollege twoyrdegree fouryrdegree postgrad income1 income2 income3 income4 income5 income6 income7 income8 income9 income10 income11 income12 income13 income14 income15 income16 relimp relattend [aweight=teamweight]

**Appendix E

svy: reg demFT i.feministIDdummy#i.partyid_2cat polint ideology female white age education income_norm01 religious

svy: reg repFT i.feministIDdummy#i.partyid_2cat polint ideology female white age education income_norm01 religious

svy: reg immig_scale i.feministIDdummy#i.partyid_2cat polint ideology female white age education income_norm01 religious

svy: reg polic_scale i.feministIDdummy#i.partyid_2cat polint ideology female white age education income_norm01 religious

**Appendix F

svy: reg immig_scale i.feministIDdummy##c.partyID polint ideology female white age education income_norm01 religious

svy: reg polic_scale i.feministIDdummy##c.partyID polint ideology female white age education income_norm01 religious

**Figure F1

svy: reg immig_scale i.feministIDdummy##i.partyid_2cat polint ideol_3cat female white age education income_norm01 religious
margins feministIDdummy#partyid_2cat, at (ideol_3cat=(0 .5 1)) atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Immigration Policies") ylabel(0(.2)1) xlabel(, angle(45))) legend(label(1 "Feminist") label(2 "Non-Fem.") position(6) cols(2) colfirst) xtitle("") name(immig2)

svy: reg polic_scale i.feministIDdummy##i.partyid_2cat polint ideol_3cat female white age education income_norm01 religious
margins feministIDdummy#partyid_2cat, at (ideol_3cat=(0 .5 1)) atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Policing Policies") ylabel(0(.2)1) xlabel(, angle(45))) legend(label(1 "Feminist") label(2 "Non-Fem.") position(6) cols(2) colfirst) xtitle("") name(polic2)

graph combine immig2 polic2, xcommon ycommon imargin(medsmall) col(2)

**Figure F2

svy, subpop(White): reg immig_scale i.feministIDdummy##i.partyid_2cat polint ideology female age education income_norm01 religious 
margins i.feministIDdummy#0.partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Immigration Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(whiteimmig)

svy, subpop(NonWhite): reg immig_scale i.feministIDdummy##i.partyid_2cat polint ideology female age education income_norm01 religious 
margins i.feministIDdummy#0.partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Immigration Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(nonwhiteimmig)

graph combine whiteimmig nonwhiteimmig, xcommon ycommon imargin(medsmall) col(2)

**Figure F3

svy, subpop(White): reg polic_scale i.feministIDdummy##i.partyid_2cat polint ideology female age education income_norm01 religious 
margins feministIDdummy#0.partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Policing Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(whitepolic)

svy, subpop(NonWhite): reg polic_scale i.feministIDdummy##i.partyid_2cat polint ideology female age education income_norm01 religious 
margins feministIDdummy#0.partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Policing Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(nonwhitepolic)

graph combine whitepolic nonwhitepolic, xcommon ycommon imargin(medsmall) col(2)



***ANES 2016***

*FTF + WEB*
svyset [pweight=V160101]

*Gender

gen female=.
replace female=1 if V161342==2
replace female=0 if V161342==1
label define female 1 "Women" 0 "Men"
label values female female

*Race & Ethnicity

gen white=0
replace white=1 if V161310x==1

gen White=.
replace White=1 if V161310x==1
replace White=0 if V161310x!=1 & V161310x>0

gen NonWhite=.
replace NonWhite=1 if V161310x>1
replace NonWhite=0 if V161310x==1

*Age

gen ageN=.
replace ageN=V161267/100 if V161267>=18 & V161267<=90

*Political Interest

gen polint = 1-((V162256-1)/3) if V162256 > 0

*Political ideology

gen ideol=.
replace ideol=0 if V161126==1
replace ideol=.167 if V161126==2
replace ideol=.333 if V161126==3
replace ideol=.5 if V161126==4 
replace ideol=.667 if V161126==5
replace ideol=.833 if V161126==6
replace ideol=1 if V161126==7
label variable ideol "Ideology, Strong Conservative=1"

gen ideol_3cat=.
replace ideol_3cat=0 if ideol<.5
replace ideol_3cat=.5 if ideol==.5
replace ideol_3cat=1 if ideol>.5 & ideol<=1
label define ideol_3cat 0 "Liberal" 1 "Conservative"
label values ideol_3cat ideol_3cat
tab ideol_3cat

gen ideology_3cat=.
replace ideology_3cat=0 if ideol_3cat==0
replace ideology_3cat=1 if ideol_3cat==.5
replace ideology_3cat=2 if ideol_3cat==1
label define ideology_3cat 0 "liberal" 2 "conservative"
label values ideology_3cat ideology_3cat
tab ideology_3cat

*Party ID

gen partyid=.
replace partyid=0 if V161158x==1
replace partyid=.167 if V161158x==2
replace partyid=.333 if V161158x==3
replace partyid=.5 if V161158x==4
replace partyid=.667 if V161158x==5
replace partyid=.833 if V161158x==6
replace partyid=1 if V161158x==7
label variable partyid "Party ID, Strong Rep=1"

gen partyid_factor=.
replace partyid_factor=1 if V161158x==1
replace partyid_factor=2 if V161158x==2
replace partyid_factor=3 if V161158x==3
replace partyid_factor=4 if V161158x==4
replace partyid_factor=5 if V161158x==5
replace partyid_factor=6 if V161158x==6
replace partyid_factor=7 if V161158x==7
label define partyid_factor 1 "Strong Dem" 7 "Strong Rep"
label values partyid_factor partyid_factor

gen partyid_3cat=.
replace partyid_3cat=0 if partyid<.5&partyid>=0
replace partyid_3cat=1 if partyid==.5
replace partyid_3cat=2 if partyid>.5&partyid<=1
label define partyid_3cat 0 "Dem."  1 "Pure Ind." 2 "Rep."
label values partyid_3cat partyid_3cat
tab partyid_3cat

gen partyid_2cat=.
replace partyid_2cat=0 if partyid_3cat==0
replace partyid_2cat=1 if partyid_3cat==2
label define partyid_2cat 0 "Democratic" 1 "Republican"
label values partyid_2cat partyid_2cat
tab partyid_2cat

*Education

gen education=V161270
replace education=. if V161270==-9 | V161270==-8 | V161270==90 | V161270==95
replace education=(education-1)/15 if V161270<17

*Income

gen income=V161361x
replace inc=. if V161361x==-9 | V161361x==-5
replace income = (income-1)/27

gen income1=0
replace income1=1 if V161361x==1 | V161361x==2

gen income2=0
replace income2=1 if V161361x>=3 & V161361x<=6

gen income3=0
replace income3=1 if V161361x>=7 & V161361x<=10

gen income4=0
replace income4=1 if V161361x==11 | V161361x==12

gen income5=0
replace income5=1 if V161361x==13 | V161361x==14

gen income6=0
replace income6=1 if V161361x==15 | V161361x==16

gen income7=0
replace income7=1 if V161361x==17 | V161361x==18

gen income8=0
replace income8=1 if V161361x==19 | V161361x==20

gen income9=0
replace income9=1 if V161361x==21 | V161361x==22

*100-125K
gen income10=0
replace income10=1 if V161361x==23 | V161361x==24

*125-150K
gen income11=0
replace income11=1 if V161361x==25

*150-175K
gen income12=0
replace income12=1 if V161361x==26

*175-250K
gen income13=0
replace income13=1 if V161361x==27

*250K or more
gen income14=0
replace income14=1 if V161361x==28

egen incomeavg=mean(income)

gen income_norm=.
replace income_norm=income/incomeavg

gen income_norm01=.
replace income_norm01=income_norm/1.876717

*Authoritarianism

gen Auth1=.
replace Auth1=0 if V162239==1
replace Auth1=1 if V162239==2

gen Auth2=.
replace Auth2=0 if V162241==2
replace Auth2=1 if V162241==1

gen Auth3=.
replace Auth3=0 if V162240==1
replace Auth3=1 if V162240==2

gen Auth4=.
replace Auth4=0 if V162242==1
replace Auth4=1 if V162242==2

alpha Auth1 Auth2 Auth3 Auth4, gen(authoritarian)

*Religiosity

gen relimp=.
replace relimp = 0 if V161241 == 2
replace relimp = .333 if V161241 == 1 & V161242 == 1
replace relimp = .667 if V161241 == 1 & V161242 == 2
replace relimp = 1 if V161241 == 1 & V161242 == 3

gen relattend=.
replace relattend = 0 if V161244 == 2 | V161245 == 5
replace relattend = .25 if V161245 == 4
replace relattend = .5 if V161245 == 3
replace relattend = .75 if V161245 == 2
replace relattend = 1 if V161245 == 1

alpha relimp relattend, gen(religious)

*Feminist identification

gen feministID=.
replace feministID=1 if V161345==1
replace feministID=.5 if V161345==2
replace feministID=0 if V161345==3

gen feministdummy=.
replace feministdummy=1 if V161345==1 | V161345==2
replace feministdummy=0 if V161345==3
label define feministdummy 1 "Feminist" 0 "Non-Fem."
label values feministdummy feministdummy
tab feministdummy

***DVs***

*Immigration progressive policies

gen immig_1=.
replace immig_1=(V161192-1)/3 if V161192>0

gen immig_2=.
replace immig_2=(V161194x-1)/6 if V161194x>0

gen immig_3=.
replace immig_3=(V161195x-1)/5 if V161195x>0

gen immig_4=.
replace immig_4=(V161196x-1)/6 if V161196x>0

alpha immig_1 immig_2 immig_3 immig_4, gen(immig_scale)

*Transgender progressive policy

gen trans=.
replace trans=(V161228x-1)/5 if V161228x>0


****************************MANUSCRIPT FIGURES***********************************

**Figure 3

svy: reg immig_scale i.feministdummy##i.partyid_2cat polint ideol female white ageN education income_norm01 religious
margins feministdummy#partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Immigration Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(immig3)

svy: reg trans i.feministdummy##i.partyid_2cat polint ideol female white ageN education income_norm01 religious
margins feministdummy#partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Transgender Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(trans1)

graph combine immig3 trans1, xcommon ycommon imargin(medsmall) col(2)


*********************************APPENDIX****************************************

**Tables H1-H2

tab feministdummy female [aweight=V160101], col

tab feministdummy partyid_3cat [aweight=V160101], col

**Figure B1

histogram partyid_factor, scheme(plottig) percent discrete xsize(4) ysize(6) xscale(range(0.5 7.5)) xlabel(1(1)7, labsize(medium) nogrid angle(45) valuelabel labcolor(black)) xtitle("Party ID", size(medium)) ytitle("Percentage of obs", size(medium)) ylabel(0(10)40, labsize(medium)) title("") subtitle(, size(medium)) by(feministdummy, title("", size(medium)) col(1) note(""))

**Appendix I

tab feministdummy ideology_3cat [aweight=V160101], row

**Appendix J

svy: reg immig_scale i.feministdummy#i.partyid_2cat polint ideol female white ageN education income_norm01 religious

svy: reg trans i.feministdummy#i.partyid_2cat polint ideol female white ageN education income_norm01 religious

**Appendix K

svy: reg immig_scale i.feministdummy##c.partyid polint ideol female white ageN education income_norm01 religious

svy: reg trans i.feministdummy##c.partyid polint ideol female white ageN education income_norm01 religious

svy: reg immig_scale i.feministdummy#i.partyid_2cat polint ideol female white ageN education income_norm01 religious authoritarian

svy: reg trans i.feministdummy#i.partyid_2cat polint ideol female white ageN education income_norm01 religious authoritarian

**Figure K1

svy: reg immig_scale i.feministdummy##i.partyid_2cat polint ideol_3cat female white ageN education income_norm01 religious 
margins feministdummy#partyid_2cat, at (ideol_3cat=(0 .5 1)) atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Immigration Policies") ylabel(0(.2)1) xlabel(, angle(45))) legend(label(1 "Feminist") label(2 "Non-Fem.") position(6) cols(2) colfirst) xtitle("") name(immig4)

svy: reg trans i.feministdummy##i.partyid_2cat polint ideol_3cat female white ageN education income_norm01 religious
margins feministdummy#partyid_2cat, at (ideol_3cat=(0 .5 1)) atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Transgender Policies") ylabel(0(.2)1) xlabel(, angle(45))) legend(label(1 "Feminist") label(2 "Non-Fem.") position(6) cols(2) colfirst) xtitle("") name(trans2)

graph combine immig4 trans2, xcommon ycommon imargin(medsmall) col(2)

**Figure K2

svy, subpop(White): reg immig_scale i.feministdummy##i.partyid_2cat polint ideol female ageN education income_norm01 religious 
margins i.feministdummy#0.partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Immigration Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(whiteim)

svy, subpop(NonWhite): reg immig_scale i.feministdummy##i.partyid_2cat polint ideol female ageN education income_norm01 religious 
margins i.feministdummy#0.partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Immigration Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(nonwhiteim)

graph combine whiteim nonwhiteim, xcommon ycommon imargin(medsmall) col(2)

**Figure K3

svy, subpop(White): reg trans i.feministdummy##i.partyid_2cat polint ideol female ageN education income_norm01 religious 
margins feministdummy#0.partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Transgender Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(whitetrans)

svy, subpop(NonWhite): reg trans i.feministdummy##i.partyid_2cat polint ideol female ageN education income_norm01 religious 
margins feministdummy#0.partyid_2cat, atmeans level(83.5)
marginsplot, by(partyid_2cat) recast(scatter) level(83.5) scheme(plottig) plotopts(mlabel(_margin) mlabformat(%9.2f) msymbol(D) msize(small) mlabposition(2) ytitle("Predicted Support for Transgender Policies") ylabel(0(.2)1) xlabel(, angle(45))) xtitle("") name(nonwhitetrans)

graph combine whitetrans nonwhitetrans, xcommon ycommon imargin(medsmall) col(2)
